package com.example.zcq.rxjava2retrofitmvp.constant;

import android.Manifest;
import android.os.Environment;

/**
 * @author zcq
 * @package com.example.zcq.rxjava2retrofitmvp.util
 * @fileName Rxjava2RetrofitMVP
 * @description: 这个类的描述
 * @org 融信通达科技有限公司
 * @email @163.com
 * @date 2018/9/20  16:40
 */
public class Constant {
    public static final String TAG = "zcq";
    /**
     * 权限常量相关
     */
    public static final int REQUEST_CODE_CHOOSE = 23;//定义请求码常量  选择图片的

    public static final int WRITE_READ_EXTERNAL_CODE = 0x01;
    public static final String[] WRITE_READ_EXTERNAL_PERMISSION = new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE,
            Manifest.permission.READ_EXTERNAL_STORAGE};

    public static final int HARDWEAR_CAMERA_CODE = 0x02;
    public static final String[] HARDWEAR_CAMERA_PERMISSION = new String[]{Manifest.permission.CAMERA};

    public static final int WRITE_READ_EXTERNAL_CAMERA_CODE = 0x03;
    public static final String[] WRITE_READ_EXTERNAL_CAMERA_PERMISSION = new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE,
            Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.CAMERA};

    public static final int READ_CONTACTS_CODE = 0x0;
    public static final String[] READ_CONTACTS_PERMISSION = new String[]{Manifest.permission.READ_CONTACTS};

    //整个应用文件下载保存路径
    public static String APP_PHOTO_DIR = Environment.
            getExternalStorageDirectory().getAbsolutePath().
            concat("/imooc_business/photo/");

}
